﻿{template 'web/_header'}
{template 'web/allorder/common_search'}
{template 'web/allorder/smallshop_tabs'}
<form action="./index.php" method="get" class="form-horizontal" role="form" id="form1">
    <input type="hidden" name="c" value="site" />
    <input type="hidden" name="a" value="entry" />
    <input type="hidden" name="m" value="ewei_shop" />
    <input type="hidden" name="do" value="allorder" />
    <input type="hidden" name="p" value="smallshop_list" />
<div class="panel panel-default">
    <div class="panel-heading">总数：{$total}</div>
    <div class="panel-body">
        <table class="table table-hover">
            <thead class="navbar-inner">
                <tr>
                    <th style='width:150px;'>订单编号</th>
                    <th style='width:80px;'>粉丝</th>
                    <th style='width:120px;'>店铺类型</th>
                    <th style='width:120px;'>支付金额</th>
                    <th style='width:120px;'>支付类型</th>
                    <th style='width:80px;'>姓名</th>
                    <th style='width:110px;'>手机号码</th>
                    <th style='width:200px;'>付款时间</th>
                    <th style='width:200px;'>审核时间</th>
                    <th style='width:80px;'>状态</th>
                    <th style='width:100px;'>操作</th>
                </tr>
            </thead>
            <tbody>
                {loop $list $row}
                <tr>
                    <td>{$row['ordersn']}</td>
                    <td><img src='{$row['avatar']}' style='width:30px;height:30px;padding1px;border:1px solid #ccc' /> {$row['nickname']}</td>
                    <td>
                        {if $row['type']==1}
                        银冠店
                        {elseif $row['type']==2}
                        金冠店
                        {elseif $row['type']==3}
                        钻石店
                        {/if}
                    </td>
                    <td>{$row['fee']}元</td>
                    <td>
                        {if $row['pay_type']=="wechat"}
                        <span class="label label-success">微信支付</span>
                        {/if}
                        {if $row['pay_type']=="unionpay"}
                        <span class="label label-warning">银联支付</span>
                        {/if}
                        {if $row['pay_type']=="cash"}
                        <span class="label label-danger">余额支付</span>
                        {/if}
                    </td>
                    <td>{$row['realname']}</td>
                    <td>{$row['mobile']}</td>
                    <td>{php echo date('Y-m-d H:i',$row['paytime'])}<br/>
                    </td>
                    <td>{if $row['sendtime']}{php echo date('Y-m-d H:i',$row['sendtime'])}{/if}<br/>
                    </td>
                    <td>{if $row['status']==1}
                        <span class="label label-danger">待审核</span>
                        {else}
                        <span class="label label-success">已审核</span>
                        {/if}
                    </td>
                    <td>
                        {if $row['status']==1}<button class="btn btn-primary" onclick="return confirm('此操作不可恢复，确认吗？'); return false;" type="submit" name="open" value="{$row['id']}">确定开通</button>{/if}</td>
                </tr>
                {/loop}
            </tbody>
        </table>
        {$pager}
    </div>
</div>
</form>
{template 'web/_footer'}